package com.twxm.breed.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//设备类别
@Data
@Table(name = "category")
public class CategoryInfo {
    @IsKey
    @TableId
    @IsAutoIncrement
    private int categoryId;

    @Column(comment = "设备名称")
    @IsNotNull
    private String name;

    @Column(comment = "设备型号")
    @IsNotNull
    private String model;

    @Column(comment = "iot-produckey")
    private String productKey;

    public CategoryInfo(String name, String model){
        this.name = name;
        this.model = model;
    }
}
